package com.ylr.blog.framework.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ylr.blog.framework.entity.AuditBlogFlowEntity;

/**
 * Created by IntelliJ IDEA.
 *
 * @author wyw
 * date: 2023-05-19 20:35:33
 * className: AuditBlogFlowService
 * version: 1.0
 * description:
 */
public interface AuditBlogFlowService extends IService<AuditBlogFlowEntity> {

    /**
     * 保存博客审核流水操作
     * @param auditBlogId 待审核博客主键
     * @param auditUser   审核用户主键
     * @param type        类型
     * @param remark      备注
     */
    void saveAuditBlogFlow(Long auditBlogId, Long auditUser, Integer type, String remark);

    /**
     * 获取最新博客审核流水操作
     * @param auditBlogId 待审核博客主键
     * @return 博客审核流水对象
     */
    AuditBlogFlowEntity getLastOne(Long auditBlogId);

}

